<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<!-- 请选择一款你喜欢的游戏，尝试声明游戏里的事物，如人物、道具等等，至少5个。 -->
		<script type="text/javascript">
			let human1 = new Object();
				human1.id = 1;
				human1.name = "孙悟空";
				human1.definition = "战士/刺客";	//人物定义	
				human1.price = "18888"	//人物价格
				human1.sex = "♂";
			console.log(human1);
		let human2 = {id: 2, name: '澜',definition:'战士/刺客',price:'18888',sex:"♂"};
			console.log(human2);
		let human3 = {id: 3, name: '镜',definition:'战士/刺客',price:'18888',sex:"♀"};
			console.log(human3);
		let human4 = {id: 4, name: '百里守约',definition:'射手',price:'13888',sex:"♂"};
			console.log(human4);
		let human5 = {id: 5, name: '诸葛亮',definition:'法师',price:'18888',sex:"♂"};
			console.log(human5);
			
			//孙悟空的皮肤
				human1.wear = function(){
					console.log(this.name + "穿戴皮肤'地狱火'");
				}
				human1.wear();
			//孙悟空的大招
				human1.skill = function(){
					console.log(this.name + "使用大招：如意金箍");
				}
				human1.skill();
				
				
			//澜的技能
				human2.skill = function(){
					console.log(this.name  + "使用一技能：破浪");
				}
				human2.skill();
			//镜的皮肤
				human3.wear = function(){
					console.log(this.name + "穿戴皮肤'炽阳神光'");
				}
				human3.wear();
			//百里守约技能
			human4.skill = function(){
				console.log(this.name  + "使用一技能：静谧之眼");
			}
			human4.skill();
			
			//吃血包
			human5.addHP = function(){
				console.log(this.name  + "吃塔下血包");
				
			}
			human5.addHP();
		</script>
	</body>
</html>
